package com.allwees.bs.module.oms.dto;

import com.allwees.bs.module.pms.entity.Product;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderProductSnapDto implements Serializable {
    private String uuid;

    /** 商品名称 */
    private String name;

    /** 商品主图 */
    private String mainPhoto;

    /** 快递预计到达时间 */
    private String shippingArrivalDesc;

    public OrderProductSnapDto(Product product) {
        this.setUuid(product.getUuid());
        this.setName(product.getName());
        this.setMainPhoto(product.getMainPhoto());
//        this.setDescription(product.getDescription());
        this.setShippingArrivalDesc(product.getShippingArrivalDesc());
    }
}
